package com.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CaseDiscribeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CaseDiscribeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCasenoIsNull() {
            addCriterion("caseno is null");
            return (Criteria) this;
        }

        public Criteria andCasenoIsNotNull() {
            addCriterion("caseno is not null");
            return (Criteria) this;
        }

        public Criteria andCasenoEqualTo(String value) {
            addCriterion("caseno =", value, "caseno");
            return (Criteria) this;
        }

        public Criteria andCasenoNotEqualTo(String value) {
            addCriterion("caseno <>", value, "caseno");
            return (Criteria) this;
        }

        public Criteria andCasenoGreaterThan(String value) {
            addCriterion("caseno >", value, "caseno");
            return (Criteria) this;
        }

        public Criteria andCasenoGreaterThanOrEqualTo(String value) {
            addCriterion("caseno >=", value, "caseno");
            return (Criteria) this;
        }

        public Criteria andCasenoLessThan(String value) {
            addCriterion("caseno <", value, "caseno");
            return (Criteria) this;
        }

        public Criteria andCasenoLessThanOrEqualTo(String value) {
            addCriterion("caseno <=", value, "caseno");
            return (Criteria) this;
        }

        public Criteria andCasenoLike(String value) {
            addCriterion("caseno like", value, "caseno");
            return (Criteria) this;
        }

        public Criteria andCasenoNotLike(String value) {
            addCriterion("caseno not like", value, "caseno");
            return (Criteria) this;
        }

        public Criteria andCasenoIn(List<String> values) {
            addCriterion("caseno in", values, "caseno");
            return (Criteria) this;
        }

        public Criteria andCasenoNotIn(List<String> values) {
            addCriterion("caseno not in", values, "caseno");
            return (Criteria) this;
        }

        public Criteria andCasenoBetween(String value1, String value2) {
            addCriterion("caseno between", value1, value2, "caseno");
            return (Criteria) this;
        }

        public Criteria andCasenoNotBetween(String value1, String value2) {
            addCriterion("caseno not between", value1, value2, "caseno");
            return (Criteria) this;
        }

        public Criteria andCasualtystatusIsNull() {
            addCriterion("casualtystatus is null");
            return (Criteria) this;
        }

        public Criteria andCasualtystatusIsNotNull() {
            addCriterion("casualtystatus is not null");
            return (Criteria) this;
        }

        public Criteria andCasualtystatusEqualTo(Integer value) {
            addCriterion("casualtystatus =", value, "casualtystatus");
            return (Criteria) this;
        }

        public Criteria andCasualtystatusNotEqualTo(Integer value) {
            addCriterion("casualtystatus <>", value, "casualtystatus");
            return (Criteria) this;
        }

        public Criteria andCasualtystatusGreaterThan(Integer value) {
            addCriterion("casualtystatus >", value, "casualtystatus");
            return (Criteria) this;
        }

        public Criteria andCasualtystatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("casualtystatus >=", value, "casualtystatus");
            return (Criteria) this;
        }

        public Criteria andCasualtystatusLessThan(Integer value) {
            addCriterion("casualtystatus <", value, "casualtystatus");
            return (Criteria) this;
        }

        public Criteria andCasualtystatusLessThanOrEqualTo(Integer value) {
            addCriterion("casualtystatus <=", value, "casualtystatus");
            return (Criteria) this;
        }

        public Criteria andCasualtystatusIn(List<Integer> values) {
            addCriterion("casualtystatus in", values, "casualtystatus");
            return (Criteria) this;
        }

        public Criteria andCasualtystatusNotIn(List<Integer> values) {
            addCriterion("casualtystatus not in", values, "casualtystatus");
            return (Criteria) this;
        }

        public Criteria andCasualtystatusBetween(Integer value1, Integer value2) {
            addCriterion("casualtystatus between", value1, value2, "casualtystatus");
            return (Criteria) this;
        }

        public Criteria andCasualtystatusNotBetween(Integer value1, Integer value2) {
            addCriterion("casualtystatus not between", value1, value2, "casualtystatus");
            return (Criteria) this;
        }

        public Criteria andIscarnormalIsNull() {
            addCriterion("iscarnormal is null");
            return (Criteria) this;
        }

        public Criteria andIscarnormalIsNotNull() {
            addCriterion("iscarnormal is not null");
            return (Criteria) this;
        }

        public Criteria andIscarnormalEqualTo(Integer value) {
            addCriterion("iscarnormal =", value, "iscarnormal");
            return (Criteria) this;
        }

        public Criteria andIscarnormalNotEqualTo(Integer value) {
            addCriterion("iscarnormal <>", value, "iscarnormal");
            return (Criteria) this;
        }

        public Criteria andIscarnormalGreaterThan(Integer value) {
            addCriterion("iscarnormal >", value, "iscarnormal");
            return (Criteria) this;
        }

        public Criteria andIscarnormalGreaterThanOrEqualTo(Integer value) {
            addCriterion("iscarnormal >=", value, "iscarnormal");
            return (Criteria) this;
        }

        public Criteria andIscarnormalLessThan(Integer value) {
            addCriterion("iscarnormal <", value, "iscarnormal");
            return (Criteria) this;
        }

        public Criteria andIscarnormalLessThanOrEqualTo(Integer value) {
            addCriterion("iscarnormal <=", value, "iscarnormal");
            return (Criteria) this;
        }

        public Criteria andIscarnormalIn(List<Integer> values) {
            addCriterion("iscarnormal in", values, "iscarnormal");
            return (Criteria) this;
        }

        public Criteria andIscarnormalNotIn(List<Integer> values) {
            addCriterion("iscarnormal not in", values, "iscarnormal");
            return (Criteria) this;
        }

        public Criteria andIscarnormalBetween(Integer value1, Integer value2) {
            addCriterion("iscarnormal between", value1, value2, "iscarnormal");
            return (Criteria) this;
        }

        public Criteria andIscarnormalNotBetween(Integer value1, Integer value2) {
            addCriterion("iscarnormal not between", value1, value2, "iscarnormal");
            return (Criteria) this;
        }

        public Criteria andIshereIsNull() {
            addCriterion("ishere is null");
            return (Criteria) this;
        }

        public Criteria andIshereIsNotNull() {
            addCriterion("ishere is not null");
            return (Criteria) this;
        }

        public Criteria andIshereEqualTo(Integer value) {
            addCriterion("ishere =", value, "ishere");
            return (Criteria) this;
        }

        public Criteria andIshereNotEqualTo(Integer value) {
            addCriterion("ishere <>", value, "ishere");
            return (Criteria) this;
        }

        public Criteria andIshereGreaterThan(Integer value) {
            addCriterion("ishere >", value, "ishere");
            return (Criteria) this;
        }

        public Criteria andIshereGreaterThanOrEqualTo(Integer value) {
            addCriterion("ishere >=", value, "ishere");
            return (Criteria) this;
        }

        public Criteria andIshereLessThan(Integer value) {
            addCriterion("ishere <", value, "ishere");
            return (Criteria) this;
        }

        public Criteria andIshereLessThanOrEqualTo(Integer value) {
            addCriterion("ishere <=", value, "ishere");
            return (Criteria) this;
        }

        public Criteria andIshereIn(List<Integer> values) {
            addCriterion("ishere in", values, "ishere");
            return (Criteria) this;
        }

        public Criteria andIshereNotIn(List<Integer> values) {
            addCriterion("ishere not in", values, "ishere");
            return (Criteria) this;
        }

        public Criteria andIshereBetween(Integer value1, Integer value2) {
            addCriterion("ishere between", value1, value2, "ishere");
            return (Criteria) this;
        }

        public Criteria andIshereNotBetween(Integer value1, Integer value2) {
            addCriterion("ishere not between", value1, value2, "ishere");
            return (Criteria) this;
        }

        public Criteria andIsoneIsNull() {
            addCriterion("isone is null");
            return (Criteria) this;
        }

        public Criteria andIsoneIsNotNull() {
            addCriterion("isone is not null");
            return (Criteria) this;
        }

        public Criteria andIsoneEqualTo(Integer value) {
            addCriterion("isone =", value, "isone");
            return (Criteria) this;
        }

        public Criteria andIsoneNotEqualTo(Integer value) {
            addCriterion("isone <>", value, "isone");
            return (Criteria) this;
        }

        public Criteria andIsoneGreaterThan(Integer value) {
            addCriterion("isone >", value, "isone");
            return (Criteria) this;
        }

        public Criteria andIsoneGreaterThanOrEqualTo(Integer value) {
            addCriterion("isone >=", value, "isone");
            return (Criteria) this;
        }

        public Criteria andIsoneLessThan(Integer value) {
            addCriterion("isone <", value, "isone");
            return (Criteria) this;
        }

        public Criteria andIsoneLessThanOrEqualTo(Integer value) {
            addCriterion("isone <=", value, "isone");
            return (Criteria) this;
        }

        public Criteria andIsoneIn(List<Integer> values) {
            addCriterion("isone in", values, "isone");
            return (Criteria) this;
        }

        public Criteria andIsoneNotIn(List<Integer> values) {
            addCriterion("isone not in", values, "isone");
            return (Criteria) this;
        }

        public Criteria andIsoneBetween(Integer value1, Integer value2) {
            addCriterion("isone between", value1, value2, "isone");
            return (Criteria) this;
        }

        public Criteria andIsoneNotBetween(Integer value1, Integer value2) {
            addCriterion("isone not between", value1, value2, "isone");
            return (Criteria) this;
        }

        public Criteria andAccidentidIsNull() {
            addCriterion("accidentid is null");
            return (Criteria) this;
        }

        public Criteria andAccidentidIsNotNull() {
            addCriterion("accidentid is not null");
            return (Criteria) this;
        }

        public Criteria andAccidentidEqualTo(Integer value) {
            addCriterion("accidentid =", value, "accidentid");
            return (Criteria) this;
        }

        public Criteria andAccidentidNotEqualTo(Integer value) {
            addCriterion("accidentid <>", value, "accidentid");
            return (Criteria) this;
        }

        public Criteria andAccidentidGreaterThan(Integer value) {
            addCriterion("accidentid >", value, "accidentid");
            return (Criteria) this;
        }

        public Criteria andAccidentidGreaterThanOrEqualTo(Integer value) {
            addCriterion("accidentid >=", value, "accidentid");
            return (Criteria) this;
        }

        public Criteria andAccidentidLessThan(Integer value) {
            addCriterion("accidentid <", value, "accidentid");
            return (Criteria) this;
        }

        public Criteria andAccidentidLessThanOrEqualTo(Integer value) {
            addCriterion("accidentid <=", value, "accidentid");
            return (Criteria) this;
        }

        public Criteria andAccidentidIn(List<Integer> values) {
            addCriterion("accidentid in", values, "accidentid");
            return (Criteria) this;
        }

        public Criteria andAccidentidNotIn(List<Integer> values) {
            addCriterion("accidentid not in", values, "accidentid");
            return (Criteria) this;
        }

        public Criteria andAccidentidBetween(Integer value1, Integer value2) {
            addCriterion("accidentid between", value1, value2, "accidentid");
            return (Criteria) this;
        }

        public Criteria andAccidentidNotBetween(Integer value1, Integer value2) {
            addCriterion("accidentid not between", value1, value2, "accidentid");
            return (Criteria) this;
        }

        public Criteria andInsurancetimeIsNull() {
            addCriterion("insurancetime is null");
            return (Criteria) this;
        }

        public Criteria andInsurancetimeIsNotNull() {
            addCriterion("insurancetime is not null");
            return (Criteria) this;
        }

        public Criteria andInsurancetimeEqualTo(Date value) {
            addCriterion("insurancetime =", value, "insurancetime");
            return (Criteria) this;
        }

        public Criteria andInsurancetimeNotEqualTo(Date value) {
            addCriterion("insurancetime <>", value, "insurancetime");
            return (Criteria) this;
        }

        public Criteria andInsurancetimeGreaterThan(Date value) {
            addCriterion("insurancetime >", value, "insurancetime");
            return (Criteria) this;
        }

        public Criteria andInsurancetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("insurancetime >=", value, "insurancetime");
            return (Criteria) this;
        }

        public Criteria andInsurancetimeLessThan(Date value) {
            addCriterion("insurancetime <", value, "insurancetime");
            return (Criteria) this;
        }

        public Criteria andInsurancetimeLessThanOrEqualTo(Date value) {
            addCriterion("insurancetime <=", value, "insurancetime");
            return (Criteria) this;
        }

        public Criteria andInsurancetimeIn(List<Date> values) {
            addCriterion("insurancetime in", values, "insurancetime");
            return (Criteria) this;
        }

        public Criteria andInsurancetimeNotIn(List<Date> values) {
            addCriterion("insurancetime not in", values, "insurancetime");
            return (Criteria) this;
        }

        public Criteria andInsurancetimeBetween(Date value1, Date value2) {
            addCriterion("insurancetime between", value1, value2, "insurancetime");
            return (Criteria) this;
        }

        public Criteria andInsurancetimeNotBetween(Date value1, Date value2) {
            addCriterion("insurancetime not between", value1, value2, "insurancetime");
            return (Criteria) this;
        }

        public Criteria andInsuranceaddressIsNull() {
            addCriterion("insuranceaddress is null");
            return (Criteria) this;
        }

        public Criteria andInsuranceaddressIsNotNull() {
            addCriterion("insuranceaddress is not null");
            return (Criteria) this;
        }

        public Criteria andInsuranceaddressEqualTo(String value) {
            addCriterion("insuranceaddress =", value, "insuranceaddress");
            return (Criteria) this;
        }

        public Criteria andInsuranceaddressNotEqualTo(String value) {
            addCriterion("insuranceaddress <>", value, "insuranceaddress");
            return (Criteria) this;
        }

        public Criteria andInsuranceaddressGreaterThan(String value) {
            addCriterion("insuranceaddress >", value, "insuranceaddress");
            return (Criteria) this;
        }

        public Criteria andInsuranceaddressGreaterThanOrEqualTo(String value) {
            addCriterion("insuranceaddress >=", value, "insuranceaddress");
            return (Criteria) this;
        }

        public Criteria andInsuranceaddressLessThan(String value) {
            addCriterion("insuranceaddress <", value, "insuranceaddress");
            return (Criteria) this;
        }

        public Criteria andInsuranceaddressLessThanOrEqualTo(String value) {
            addCriterion("insuranceaddress <=", value, "insuranceaddress");
            return (Criteria) this;
        }

        public Criteria andInsuranceaddressLike(String value) {
            addCriterion("insuranceaddress like", value, "insuranceaddress");
            return (Criteria) this;
        }

        public Criteria andInsuranceaddressNotLike(String value) {
            addCriterion("insuranceaddress not like", value, "insuranceaddress");
            return (Criteria) this;
        }

        public Criteria andInsuranceaddressIn(List<String> values) {
            addCriterion("insuranceaddress in", values, "insuranceaddress");
            return (Criteria) this;
        }

        public Criteria andInsuranceaddressNotIn(List<String> values) {
            addCriterion("insuranceaddress not in", values, "insuranceaddress");
            return (Criteria) this;
        }

        public Criteria andInsuranceaddressBetween(String value1, String value2) {
            addCriterion("insuranceaddress between", value1, value2, "insuranceaddress");
            return (Criteria) this;
        }

        public Criteria andInsuranceaddressNotBetween(String value1, String value2) {
            addCriterion("insuranceaddress not between", value1, value2, "insuranceaddress");
            return (Criteria) this;
        }

        public Criteria andCarnumberIsNull() {
            addCriterion("carnumber is null");
            return (Criteria) this;
        }

        public Criteria andCarnumberIsNotNull() {
            addCriterion("carnumber is not null");
            return (Criteria) this;
        }

        public Criteria andCarnumberEqualTo(String value) {
            addCriterion("carnumber =", value, "carnumber");
            return (Criteria) this;
        }

        public Criteria andCarnumberNotEqualTo(String value) {
            addCriterion("carnumber <>", value, "carnumber");
            return (Criteria) this;
        }

        public Criteria andCarnumberGreaterThan(String value) {
            addCriterion("carnumber >", value, "carnumber");
            return (Criteria) this;
        }

        public Criteria andCarnumberGreaterThanOrEqualTo(String value) {
            addCriterion("carnumber >=", value, "carnumber");
            return (Criteria) this;
        }

        public Criteria andCarnumberLessThan(String value) {
            addCriterion("carnumber <", value, "carnumber");
            return (Criteria) this;
        }

        public Criteria andCarnumberLessThanOrEqualTo(String value) {
            addCriterion("carnumber <=", value, "carnumber");
            return (Criteria) this;
        }

        public Criteria andCarnumberLike(String value) {
            addCriterion("carnumber like", value, "carnumber");
            return (Criteria) this;
        }

        public Criteria andCarnumberNotLike(String value) {
            addCriterion("carnumber not like", value, "carnumber");
            return (Criteria) this;
        }

        public Criteria andCarnumberIn(List<String> values) {
            addCriterion("carnumber in", values, "carnumber");
            return (Criteria) this;
        }

        public Criteria andCarnumberNotIn(List<String> values) {
            addCriterion("carnumber not in", values, "carnumber");
            return (Criteria) this;
        }

        public Criteria andCarnumberBetween(String value1, String value2) {
            addCriterion("carnumber between", value1, value2, "carnumber");
            return (Criteria) this;
        }

        public Criteria andCarnumberNotBetween(String value1, String value2) {
            addCriterion("carnumber not between", value1, value2, "carnumber");
            return (Criteria) this;
        }

        public Criteria andDriverIsNull() {
            addCriterion("driver is null");
            return (Criteria) this;
        }

        public Criteria andDriverIsNotNull() {
            addCriterion("driver is not null");
            return (Criteria) this;
        }

        public Criteria andDriverEqualTo(String value) {
            addCriterion("driver =", value, "driver");
            return (Criteria) this;
        }

        public Criteria andDriverNotEqualTo(String value) {
            addCriterion("driver <>", value, "driver");
            return (Criteria) this;
        }

        public Criteria andDriverGreaterThan(String value) {
            addCriterion("driver >", value, "driver");
            return (Criteria) this;
        }

        public Criteria andDriverGreaterThanOrEqualTo(String value) {
            addCriterion("driver >=", value, "driver");
            return (Criteria) this;
        }

        public Criteria andDriverLessThan(String value) {
            addCriterion("driver <", value, "driver");
            return (Criteria) this;
        }

        public Criteria andDriverLessThanOrEqualTo(String value) {
            addCriterion("driver <=", value, "driver");
            return (Criteria) this;
        }

        public Criteria andDriverLike(String value) {
            addCriterion("driver like", value, "driver");
            return (Criteria) this;
        }

        public Criteria andDriverNotLike(String value) {
            addCriterion("driver not like", value, "driver");
            return (Criteria) this;
        }

        public Criteria andDriverIn(List<String> values) {
            addCriterion("driver in", values, "driver");
            return (Criteria) this;
        }

        public Criteria andDriverNotIn(List<String> values) {
            addCriterion("driver not in", values, "driver");
            return (Criteria) this;
        }

        public Criteria andDriverBetween(String value1, String value2) {
            addCriterion("driver between", value1, value2, "driver");
            return (Criteria) this;
        }

        public Criteria andDriverNotBetween(String value1, String value2) {
            addCriterion("driver not between", value1, value2, "driver");
            return (Criteria) this;
        }

        public Criteria andCasephoneIsNull() {
            addCriterion("casephone is null");
            return (Criteria) this;
        }

        public Criteria andCasephoneIsNotNull() {
            addCriterion("casephone is not null");
            return (Criteria) this;
        }

        public Criteria andCasephoneEqualTo(String value) {
            addCriterion("casephone =", value, "casephone");
            return (Criteria) this;
        }

        public Criteria andCasephoneNotEqualTo(String value) {
            addCriterion("casephone <>", value, "casephone");
            return (Criteria) this;
        }

        public Criteria andCasephoneGreaterThan(String value) {
            addCriterion("casephone >", value, "casephone");
            return (Criteria) this;
        }

        public Criteria andCasephoneGreaterThanOrEqualTo(String value) {
            addCriterion("casephone >=", value, "casephone");
            return (Criteria) this;
        }

        public Criteria andCasephoneLessThan(String value) {
            addCriterion("casephone <", value, "casephone");
            return (Criteria) this;
        }

        public Criteria andCasephoneLessThanOrEqualTo(String value) {
            addCriterion("casephone <=", value, "casephone");
            return (Criteria) this;
        }

        public Criteria andCasephoneLike(String value) {
            addCriterion("casephone like", value, "casephone");
            return (Criteria) this;
        }

        public Criteria andCasephoneNotLike(String value) {
            addCriterion("casephone not like", value, "casephone");
            return (Criteria) this;
        }

        public Criteria andCasephoneIn(List<String> values) {
            addCriterion("casephone in", values, "casephone");
            return (Criteria) this;
        }

        public Criteria andCasephoneNotIn(List<String> values) {
            addCriterion("casephone not in", values, "casephone");
            return (Criteria) this;
        }

        public Criteria andCasephoneBetween(String value1, String value2) {
            addCriterion("casephone between", value1, value2, "casephone");
            return (Criteria) this;
        }

        public Criteria andCasephoneNotBetween(String value1, String value2) {
            addCriterion("casephone not between", value1, value2, "casephone");
            return (Criteria) this;
        }

        public Criteria andInsurednameIsNull() {
            addCriterion("insuredname is null");
            return (Criteria) this;
        }

        public Criteria andInsurednameIsNotNull() {
            addCriterion("insuredname is not null");
            return (Criteria) this;
        }

        public Criteria andInsurednameEqualTo(String value) {
            addCriterion("insuredname =", value, "insuredname");
            return (Criteria) this;
        }

        public Criteria andInsurednameNotEqualTo(String value) {
            addCriterion("insuredname <>", value, "insuredname");
            return (Criteria) this;
        }

        public Criteria andInsurednameGreaterThan(String value) {
            addCriterion("insuredname >", value, "insuredname");
            return (Criteria) this;
        }

        public Criteria andInsurednameGreaterThanOrEqualTo(String value) {
            addCriterion("insuredname >=", value, "insuredname");
            return (Criteria) this;
        }

        public Criteria andInsurednameLessThan(String value) {
            addCriterion("insuredname <", value, "insuredname");
            return (Criteria) this;
        }

        public Criteria andInsurednameLessThanOrEqualTo(String value) {
            addCriterion("insuredname <=", value, "insuredname");
            return (Criteria) this;
        }

        public Criteria andInsurednameLike(String value) {
            addCriterion("insuredname like", value, "insuredname");
            return (Criteria) this;
        }

        public Criteria andInsurednameNotLike(String value) {
            addCriterion("insuredname not like", value, "insuredname");
            return (Criteria) this;
        }

        public Criteria andInsurednameIn(List<String> values) {
            addCriterion("insuredname in", values, "insuredname");
            return (Criteria) this;
        }

        public Criteria andInsurednameNotIn(List<String> values) {
            addCriterion("insuredname not in", values, "insuredname");
            return (Criteria) this;
        }

        public Criteria andInsurednameBetween(String value1, String value2) {
            addCriterion("insuredname between", value1, value2, "insuredname");
            return (Criteria) this;
        }

        public Criteria andInsurednameNotBetween(String value1, String value2) {
            addCriterion("insuredname not between", value1, value2, "insuredname");
            return (Criteria) this;
        }

        public Criteria andIdentityIsNull() {
            addCriterion("identity is null");
            return (Criteria) this;
        }

        public Criteria andIdentityIsNotNull() {
            addCriterion("identity is not null");
            return (Criteria) this;
        }

        public Criteria andIdentityEqualTo(String value) {
            addCriterion("identity =", value, "identity");
            return (Criteria) this;
        }

        public Criteria andIdentityNotEqualTo(String value) {
            addCriterion("identity <>", value, "identity");
            return (Criteria) this;
        }

        public Criteria andIdentityGreaterThan(String value) {
            addCriterion("identity >", value, "identity");
            return (Criteria) this;
        }

        public Criteria andIdentityGreaterThanOrEqualTo(String value) {
            addCriterion("identity >=", value, "identity");
            return (Criteria) this;
        }

        public Criteria andIdentityLessThan(String value) {
            addCriterion("identity <", value, "identity");
            return (Criteria) this;
        }

        public Criteria andIdentityLessThanOrEqualTo(String value) {
            addCriterion("identity <=", value, "identity");
            return (Criteria) this;
        }

        public Criteria andIdentityLike(String value) {
            addCriterion("identity like", value, "identity");
            return (Criteria) this;
        }

        public Criteria andIdentityNotLike(String value) {
            addCriterion("identity not like", value, "identity");
            return (Criteria) this;
        }

        public Criteria andIdentityIn(List<String> values) {
            addCriterion("identity in", values, "identity");
            return (Criteria) this;
        }

        public Criteria andIdentityNotIn(List<String> values) {
            addCriterion("identity not in", values, "identity");
            return (Criteria) this;
        }

        public Criteria andIdentityBetween(String value1, String value2) {
            addCriterion("identity between", value1, value2, "identity");
            return (Criteria) this;
        }

        public Criteria andIdentityNotBetween(String value1, String value2) {
            addCriterion("identity not between", value1, value2, "identity");
            return (Criteria) this;
        }

        public Criteria andReservedIsNull() {
            addCriterion("reserved is null");
            return (Criteria) this;
        }

        public Criteria andReservedIsNotNull() {
            addCriterion("reserved is not null");
            return (Criteria) this;
        }

        public Criteria andReservedEqualTo(String value) {
            addCriterion("reserved =", value, "reserved");
            return (Criteria) this;
        }

        public Criteria andReservedNotEqualTo(String value) {
            addCriterion("reserved <>", value, "reserved");
            return (Criteria) this;
        }

        public Criteria andReservedGreaterThan(String value) {
            addCriterion("reserved >", value, "reserved");
            return (Criteria) this;
        }

        public Criteria andReservedGreaterThanOrEqualTo(String value) {
            addCriterion("reserved >=", value, "reserved");
            return (Criteria) this;
        }

        public Criteria andReservedLessThan(String value) {
            addCriterion("reserved <", value, "reserved");
            return (Criteria) this;
        }

        public Criteria andReservedLessThanOrEqualTo(String value) {
            addCriterion("reserved <=", value, "reserved");
            return (Criteria) this;
        }

        public Criteria andReservedLike(String value) {
            addCriterion("reserved like", value, "reserved");
            return (Criteria) this;
        }

        public Criteria andReservedNotLike(String value) {
            addCriterion("reserved not like", value, "reserved");
            return (Criteria) this;
        }

        public Criteria andReservedIn(List<String> values) {
            addCriterion("reserved in", values, "reserved");
            return (Criteria) this;
        }

        public Criteria andReservedNotIn(List<String> values) {
            addCriterion("reserved not in", values, "reserved");
            return (Criteria) this;
        }

        public Criteria andReservedBetween(String value1, String value2) {
            addCriterion("reserved between", value1, value2, "reserved");
            return (Criteria) this;
        }

        public Criteria andReservedNotBetween(String value1, String value2) {
            addCriterion("reserved not between", value1, value2, "reserved");
            return (Criteria) this;
        }

        public Criteria andReserved1IsNull() {
            addCriterion("reserved1 is null");
            return (Criteria) this;
        }

        public Criteria andReserved1IsNotNull() {
            addCriterion("reserved1 is not null");
            return (Criteria) this;
        }

        public Criteria andReserved1EqualTo(String value) {
            addCriterion("reserved1 =", value, "reserved1");
            return (Criteria) this;
        }

        public Criteria andReserved1NotEqualTo(String value) {
            addCriterion("reserved1 <>", value, "reserved1");
            return (Criteria) this;
        }

        public Criteria andReserved1GreaterThan(String value) {
            addCriterion("reserved1 >", value, "reserved1");
            return (Criteria) this;
        }

        public Criteria andReserved1GreaterThanOrEqualTo(String value) {
            addCriterion("reserved1 >=", value, "reserved1");
            return (Criteria) this;
        }

        public Criteria andReserved1LessThan(String value) {
            addCriterion("reserved1 <", value, "reserved1");
            return (Criteria) this;
        }

        public Criteria andReserved1LessThanOrEqualTo(String value) {
            addCriterion("reserved1 <=", value, "reserved1");
            return (Criteria) this;
        }

        public Criteria andReserved1Like(String value) {
            addCriterion("reserved1 like", value, "reserved1");
            return (Criteria) this;
        }

        public Criteria andReserved1NotLike(String value) {
            addCriterion("reserved1 not like", value, "reserved1");
            return (Criteria) this;
        }

        public Criteria andReserved1In(List<String> values) {
            addCriterion("reserved1 in", values, "reserved1");
            return (Criteria) this;
        }

        public Criteria andReserved1NotIn(List<String> values) {
            addCriterion("reserved1 not in", values, "reserved1");
            return (Criteria) this;
        }

        public Criteria andReserved1Between(String value1, String value2) {
            addCriterion("reserved1 between", value1, value2, "reserved1");
            return (Criteria) this;
        }

        public Criteria andReserved1NotBetween(String value1, String value2) {
            addCriterion("reserved1 not between", value1, value2, "reserved1");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}